#!/usr/bin/env python
# -*- coding:utf-8 -*-
import socket
ip_port=('127.0.0.1',8888)
sk=socket.socket()
sk.connect(ip_port)
sk.settimeout(5)

while True:
    inp=raw_input("please input:")
    sk.sendall(inp)
    print sk.recv(1024)

sk.close()